import {Routes} from "@angular/router";
import {LoginComponent} from "../user/login/login.component";
import {RegisterComponent} from "../user/register/register.component";
import {JoinGameReq} from "../../api/GameApi";
import {JoinGameComponent} from "./join-game/join-game.component";
import {CreateGameComponent} from "./create-game/create-game.component";
import {GameHouseComponent} from "./game-house/game-house.component";
import {EmptyComponent} from "../empty/empty.component";

export const gameRouts: Routes = [
  {
    path:"join",
    component:JoinGameComponent,

  },
  {
    path:"create",
    component:CreateGameComponent
  },
  {
    path:"house/:houseCode",
    component:GameHouseComponent
  },
  {
    path:"house",
    component:GameHouseComponent
  },
  {
  path:"**",
    component:EmptyComponent
  }
]
